#include "sciter-x-window.hpp"
#include "behaviors/behavior_video_generator.cpp"
#include "behaviors/behavior_tabs.cpp"
#include "behaviors/behavior_camera_capture.cpp"
#include "behaviors/behavior_drawing.cpp"
#include "behaviors/behavior_drawing-gdi.cpp"

static RECT wrc = { 100, 100, 1000, 800 };

class frame: public sciter::window {
public:
  frame() : window( SW_MAIN | SW_ALPHA | SW_POPUP | SW_ENABLE_DEBUG, wrc) {}

};

#include "resources.cpp" // packed /res/ folder

int uimain(std::function<int()> run ) {

  sciter::archive::instance().open(aux::elements_of(resources)); // bind resources[] (defined in "resources.cpp") with the archive

  frame *pwin = new frame();

  // note: this:://app URL schema is dedicated to the sciter::archive content associated with the application
  pwin->load( WSTR("this://app/main.htm") );

  pwin->expand();

  return run();
}
